package com.wx.gof.pattern.behavioral.command;

/**
 * @ClassName CloseComputerCommand
 * @Author wx
 * @Description 关闭计算机命令
 * @Date 2018-12-14-23:27
 */
public class CloseComputerCommand implements ICommand {
    private Computer computer;

    public CloseComputerCommand(Computer computer) {
        this.computer = computer;
    }

    @Override
    public void execute() {
        this.computer.close();
    }
}
